message("---")
message("---Enter directory: ${CMAKE_CURRENT_SOURCE_DIR}")

include_directories(testdir1_subdir)

# 获取当前文件的INCLUDE_DIRECTORIES目录属性
get_property(dirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)
message("   --$ include dir list: ${dirs}")

add_library(test1 test1.cpp)
message("   --$ after add lib test1")
get_property(dirs TARGET test1 PROPERTY INCLUDE_DIRECTORIES)
message("   --$ lib test1 include dir list: ${dirs}")
get_property(dirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)
message("   --$ current file include dir list: ${dirs}")

message("---Exist directory: ${CMAKE_CURRENT_SOURCE_DIR}")
message("---")
